﻿<%@ Page Title=" : ล็อกอิน : " Language="C#" MasterPageFile="~/masterpage/Anonymous.Master" AutoEventWireup="true" CodeBehind="singin.aspx.cs" Inherits="Web.singin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <asp:UpdatePanel ID="upl" UpdateMode="Conditional"  runat="server">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnLogin" />
            </Triggers>
            <ContentTemplate>
            <div style="width: 100%;">
                <table>
                    <tr>
                        <td style="width:25%;"></td>
                        <td style="width:50%;">
                            <table style="width: 100%; background-color: #708090;margin-top:30%;margin-left: 40%;" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <asp:Image ID="Image1" ImageUrl="images/imgLoginPage.png" BorderWidth="0" runat="server" />
                                    </td>
                                    <td style="width: 100%; text-align: center; vertical-align: middle">
                                        <table>
                                            <tr>
                                                <td style="text-align: right; vertical-align: middle">
                                                    <span class="field-validation-error">*</span><asp:Label ID="lbUser" runat="server" CssClass="label" Text="ชื่อล็อกอิน"></asp:Label>
                                                    :
                                                </td>
                                                <td style="text-align: left; vertical-align: middle">
                                                    <asp:TextBox ID="txUsername" CssClass="textbox" MaxLength="20" Width="200px" runat="server"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td style="text-align: right; vertical-align: middle">
                                                    <span class="field-validation-error">*</span><asp:Label ID="lbPassword" runat="server" CssClass="label" Text="รหัสผ่าน"></asp:Label>
                                                    :</td>
                                                <td style="text-align: left; vertical-align: middle">
                                                    <asp:TextBox ID="txPassword" CssClass="textbox" TextMode="Password" Width="200px" MaxLength="20" runat="server"></asp:TextBox></td>
                                            </tr>

                                            <tr>
                                                <td style="text-align: right; vertical-align: middle"></td>
                                                <td style="text-align: left; vertical-align: middle">
                                                    <asp:Button ID="btnLogin" CssClass="access" runat="server" Text="เข้าสู่ระบบ" Style="margin-left: 0; background-image: url('../images/true.png'); background-repeat: no-repeat;" Width="100px" Font-Overline="False" OnClick="btnLogin_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2"><br />
                                        <asp:HyperLink ID="hpkForgat"  CssClass="label HyperLink" NavigateUrl="forgot.aspx" runat="server">หากท่านลืมรหัสผ่าน</asp:HyperLink> &nbsp;
                                        <asp:HyperLink ID="hpkRegister" CssClass="label HyperLink" NavigateUrl="register.aspx" runat="server">เพื่อสมัครสมาชิกใหม่</asp:HyperLink>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align: right;">
                                        <asp:Label ID="lbIP" CssClass="label" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="width:25%;"></td>
                    </tr>
                </table>
            </div>
            </ContentTemplate>
        </asp:UpdatePanel>
</asp:Content>
